package com.qg.wcsopcuaqj.enums.yeyatai.yeya2;

import com.qg.wcsopcuaqj.enums.CodeEnum;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 10:06
 * @Version 1.0
 */
public enum YY2Wcs2PlcVarEnum implements CodeEnum {
    /**
     *堆垛机
     **/
    ClearAlarm("ClearAlarm",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.ClearAlarm","QBoolean","手工解除报警指令"),
    Estop("Estop",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.Estop","QBoolean","急停信号"),
//    LoadFinish("LoadFinish",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.Estop","","上料完成信号"),
//    CancelTask("CancelTask",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.Estop","","取消当前任务命令"),
//    TaskNo("TaskNo",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.Estop","","任务号"),
//    STB("STB",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.STB","QShort","WCS→入库液压台1任务数据更新信号"),
//    ACK("ACK",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToPlatform2.ACK","QShort","WCS→入库液压台1任务数据接收应答"),


    /**
     *称重plc
     **/
    ;
    private Integer namespace;
    private String identity;
    private String type;
    private String desc;
    private String name;
    YY2Wcs2PlcVarEnum(String name, Integer namespace, String identity, String type, String desc){
        this.name = name;
        this.namespace = namespace;
        this.identity = identity;
        this.type = type;
        this.desc = desc;
    }

    @Override
    public void set(String name, Integer nameSpace, String identity) {
        this.name = name;
        this.namespace = nameSpace;
        this.identity = identity;
    }
    @Override
    public Integer getNamespace() {
        return namespace;
    }

    @Override
    public String getIdentity() {
        return identity;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
